import request from '@/util/request.js'
module.exports = {
	login: (param) => request.post('/sys/auth/mobile', param),
	//获取微信openId
	getWxOpenId: (param) => request.post('/sys/auth/getWxOpenId', param, "登录中..."),
	//内容列表
	getContentsByTag: (param) => request.get('/health/wx/getContentsByTag', param),
	//热播列表
	getTopContentList: (param) => request.get('/health/wx/getTopContentList', param),
	//获取标签列表
	getTagList: (param) => request.get('/health/tags/page', param),
	//首页banner图
	getBannerList: (param) => request.get('/health/wx/getBannersByTag', param),
	//内容详情
	getDetails: (param) => request.get('/health/contents/getContentInfo', param),
	//内容评论
	getCommentByContent: (param) => request.get('/health/wx/getCommentByContent', param),
    //内容评论
	contentComment: (param) => request.post('/health/wx/contentComment', param),
	//内容点赞、取消点赞
	contentLikes: (param) => request.post('/health/wx/contentLikes', param),
	//内容收藏、取消收藏
	contentFolder: (param) => request.post('/health/wx/contentFolder', param),
	//搜索内容
	contentsWithSearch: (param) => request.get('/health/wx/getContentsWithSearch', param, "查询中..."),
	//搜索历史记录
	histories: (param) => request.get('/health/histories/page', param),
	//删除搜索历史记录
	deleteHistories: (param) => request.post('/health/histories/delete', param),
	//直播预约列表
	getLiveList: (param) => request.get('/health/wx/getHomeLiveList', param),
	//直播预约
	reservationLive: (param) => request.post('/health/userLive/save', param),
	//直播列表
	getAllLiveList: (param) => request.get('/health/wx/getLiveList', param),
	//直播详情
	getLiveInfo: (param) => request.get('/health/wx/getLiveInfo', param),
	//直播评论列表
	getLiveComment: (param) => request.get('/health/liveComment/page', param),
	//收藏夹作品列表查询 我的观看历史列表(内容) 收藏夹作品查询,全量或某一收藏夹
	getContentsByUser: (param) => request.get('/health/wx/getContentsByUser', param),
	//医生基本信息(含粉丝数量)
	getExpertInfo: (param) => request.get('/health/expert/getExpertInfo', param),
	//收藏夹作品删除(批量)
	batchDelete: (param) => request.post('/health/userFolders/batchDelete', param),
	//关注医生
	followExpert: (param) => request.post('/health/userExpert/save', param),
	//取消关注医生
	cancelFollowExpert: (param) => request.post('/health/userExpert/delete', param),
	//直播评论
	saveLiveComment: (param) => request.get('/health/live/insertMessage', param),
	//我的关注列表
	getExpertByUserId: (param) => request.get('/health/wx/getExpertByUserId', param, "查询中..."),
	//我的观看历史列表(专家)
	getHistoryExpertByUser: (param) => request.get('/health/wx/getHistoryExpertByUser', param),
	//我的预约列表
	getReservationLiveByUserId: (param) => request.get('/health/wx/getReservationLiveByUserId', param),
	//我的最近更新专家列表
	getRecentExpertByUser: (param) => request.get('/health/wx/getRecentExpertByUser', param),
	//查询评论区是否开放
	getCommentSwitchStatus: (param) => request.get('/health/wx/getCommentSwitchStatus', param),
	//收藏夹作品查询,全量或某一收藏夹
	getCollectByUser: (param) => request.get('/health/collectionfolders/getCollectByUser', param),
	//收藏夹子目录与内容列表查询
	getFolderContentByUser: (param) => request.get('/health/collectionfolders/getFolderContentByUser', param),
	//收藏夹新建
	saveCollectionFolders: (param) => request.post('/health/collectionfolders/save', param),
	//收藏夹作品新增(批量)
	batchSave: (param) => request.post('/health/userFolders/batchSave', param),
	//移出收藏夹(作品移动至默认收藏夹)
	displaceForDeafult: (param) => request.post('/health/userFolders/displaceForDeafult', param),
	//收藏夹修改
	editFlie: (param) => request.post('/health/collectionfolders/update', param),
	//收藏夹删除
	deleteFlie: (param) => request.post('/health/collectionfolders/delete', param),
	//收藏夹作品移动(批量)
	displace: (param) => request.post('/health/userFolders/displace', param),
	//收藏夹作品查询,全量或某一收藏夹
	getCollectionFoldersInfoByUser: (param) => request.get('/health/collectionfolders/getCollectionFoldersInfoByUser', param),
	//小程序下方标签列表
	getTags: (param) => request.get('/health/livetype/page', param),
	//小程序浏览量
	getPageViews: (param) => request.get('/health/wx/getPageViews', param),
}